console.log(encodeURI('http://www.baidu.com?aaa=1 23'));

//对字符串进行编码
export function encodeStr(str:string){
	return !!value ?encodeURI(str).replace(/\+/g,"%20").replace(/\*/g, "%2A").replace(/\%7E/g, "~"):null;
}


var queryObj = {};
queryObj.Action="DescribeDomainRecords";
queryObj.Version="2015-01-09";
queryObj.AccessKeyId="testid";
queryObj.TimeStamp=(new Date()).toISOString();;
queryObj.SignatureMethod="HMAC-SHA1";;
queryObj.SignatureVersion="1.0";;
queryObj.SignatureNonce=Math.floor((Math.random()*1000));;
queryObj.Format="XML";;


let keys =  Object.keys(queryObj).sort();